import request from '@/utils/request'

// 查询equipment_info列表
export function listEquipment(query) {
  return request({
    url: 'batchschedule/equipment/list',
    method: 'get',
    params: query
  })
}

// 查询equipment_info详细
export function getEquipment(id) {
  return request({
    url: '/batchschedule/equipment/' + id,
    method: 'get'
  })
}

// 新增equipment_info
export function addEquipment(data) {
  return request({
    url: '/batchschedule/equipment',
    method: 'post',
    data: data
  })
}

// 修改equipment_info
export function updateEquipment(data) {
  return request({
    url: '/batchschedule/equipment',
    method: 'put',
    data: data
  })
}

// 删除equipment_info
export function delEquipment(id) {
  return request({
    url: '/batchschedule/equipment/' + id,
    method: 'delete'
  })
}
